<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
  <div region="center" style="padding:0px;border:0px">
  <t:datagrid name="dictGroupList" checkbox="false" fitColumns="true" title="实验室耗材使用统计" actionUrl="meterialRpt.do?labDatagrid" idField="id" fit="true" queryMode="group">
   <t:dgCol title="主键"  field="id"  hidden="true"  queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="操作日期"  field="rptDate"  query="true"  formatter="yyyy-MM-dd"   queryMode="group"  hidden="true" width="120"></t:dgCol>
   <t:dgCol title="耗材名称"  field="meterial.name" query="true"   queryMode="single"  width="100"></t:dgCol> 
   <t:dgCol title="实验室名称"  field="lab.name"    query="true" queryMode="single"  width="120"></t:dgCol>
   <t:dgCol title="数量"  field="useCount"   queryMode="single"  width="120"></t:dgCol>
      <t:dgToolBar title="导出" icon="icon-putout" funname="ExportXls"></t:dgToolBar>
   
   </t:datagrid>
  </div>
 </div>
 <script type="text/javascript">
	 $(document).ready(function(){
	 	//给时间控件加上样式
	 	$("#dictGroupListtb").find("input[name='rptDate_begin']").attr("class","Wdate").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
	 	$("#dictGroupListtb").find("input[name='rptDate_end']").attr("class","Wdate").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
	 }); 
	 
	 
	//导出
	 function ExportXls() {
	 	JeecgExcelExport("meterialRpt.do?exportLabXls","dictGroupList");
	 }
 </script>